feat: admin events page with cohort filter#9
Merged
AlexVOiceover merged 6 commits intomainfrom Dec 29, 2025
Merged
Conversation
- Sprint 2 review documenting completed work (7 tickets, 12 points) - AP-17 partial implementation: server-side load function for events page - Documents story split: AP-17 reduced scope, AP-19 created for public events
- Document three check-in flows (registered with/without session, external) - Add event types (cohort vs open) and security mechanisms - Update US-1 with 4-digit check-in code requirement - Document Airtable attendance record structure
- Display events with name, date/time, type, cohort - Tailwind styling for table with hover states - Handle missing/invalid values gracefully - Show 'Open' badge for events without cohort
- Add listCohorts function to airtable client - Fetch cohorts in load function (parallel with events) - Add dropdown filter that updates URL params - Display actual cohort names in table instead of IDs - Sort cohorts reverse alphabetically (newest first) - Filter uses cohort name to match Airtable formula
Links to /admin/events/new (AP-18)
- Add keys to each blocks - Use resolve() for navigation - Fix arrow function parentheses - Add placeholder page for /admin/events/new
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/admin/eventsdisplaying events from AirtablelistCohortsfunction to Airtable clientChanges
src/routes/admin/events/): Server load function + Svelte pagesrc/lib/airtable/airtable.ts): AddedlistCohorts()functionlistCohortsandCohorttypedocs/planning/sprint02_review.mdTest plan
/admin/eventsas staff user/admin/events/new(404 expected - AP-18)npm run check- no TypeScript errorsRelated
Closes AP-17